# coding=utf-8
"""
作者：董新强 
创建时间：
描述：
"""
from apis import index_api, cat_api, param_eval_api, admin_api, cat_app_api

GLOBAL_URLS = [
    (r'/muxian/cat/ability', cat_api.AbilityHandler),
    (r'/muxian/cat/answer/start', cat_api.QuestionHandler),
    (r'/muxian/cat/answer', cat_api.AnswerHandler),
    (r'/muxian/cat/report', cat_api.ReportScoreHandler),
    (r'/muxian/cat/errors', cat_api.ErrorAnswerHandler),

    # 不需要登录就能调用的接口
    (r'/muxian/cat/public/ability', cat_api.AbilityPublicHandler),

    # 参数评估相关接口
    (r'/muxian/cat/eval/test/start', param_eval_api.ParamEvalStartTestHandler),  # 开始答题
    (r'/muxian/cat/eval/test/answer', param_eval_api.ParamEvalAnswerHandler),  # 答题
    (r'/muxian/cat/eval/test/ability', param_eval_api.AblilityHandler),  # 获取能力列表

    # 管理员
    (r'/muxian/cat/admin/question', admin_api.QuestionHandler),
    (r'/muxian/cat/admin/raw', admin_api.RawQuestionHandler),
    (r'/muxian/cat/admin/param', admin_api.ParamEstHandler),
    (r'/muxian/cat/admin/ability', admin_api.AbilityHandler),

    # 对外接口
    (r'/catapi/login', cat_app_api.LoginHandler),
    (r'/catapi/new', cat_app_api.StartTestHandler),
    (r'/catapi/answer/[a-z]+', cat_app_api.TestHandler),
    (r'/catapi/status', cat_app_api.ScoreHandler),
    (r'.*', index_api.OtherHandler)
]
